'use strict';
var mongoose = require('mongoose');
var Schema = mongoose.Schema;


var BookSchema = new Schema({
  title: {
    type: String,
  },
  Created_date: {
    type: Date,
    default: Date.now
  },
  author: {
      type: String
  },
  read: {
      type: Boolean,
      default: 'false'   
  }
});

module.exports = mongoose.model('Books', BookSchema);